'use strict';

angular.module('app')
  .directive('appSheet', [function() {
    return {
      restrict: 'A',
      replace: true,
      scope: {
        visible: "=",
        list: "=",
        selectClick: "&"
      },
      link: function(scope) {
        /*scope.selectItem = function(item) {
  scope.select(item);
}
*/
        scope.clickSelect = function(item) {
          // console.log(item);
          scope.selectClick(item);
        }
      },
      templateUrl: 'view/template/sheet.html'
    }
  }])
